package com.dfrobot.demo.domain.entity;

import java.util.Date;
import javax.persistence.*;
import lombok.Data;

@Data
@Table(name = "customer")
public class Customer {
    @Id
    @Column(name = "customer_id")
    private Integer customerId;

    @Column(name = "customer_group_id")
    private Integer customerGroupId;

    @Column(name = "store_id")
    private Integer storeId;

    @Column(name = "language_id")
    private Integer languageId;

    private String firstname;

    private String lastname;

    private String email;

    private String telephone;

    private String fax;

    private String password;

    private String salt;

    private Boolean newsletter;

    @Column(name = "address_id")
    private Integer addressId;

    private String ip;

    private Boolean status;

    private Boolean safe;

    private String code;

    @Column(name = "date_added")
    private Date dateAdded;

    private Short mail;

    private Boolean approved;

    private String openid;

    /**
     * 老带新，邀请人
     */
    private Integer inviter;

    /**
     * 1 R & D 2. Study 3.Personal Project  4.Purchasing Agent
     */
    @Column(name = "customer_tag")
    private String customerTag;

    /**
     * 兴趣标签
     */
    @Column(name = "interest_tag")
    private String interestTag;

    /**
     * 购买目的
     */
    @Column(name = "purchase_purpose")
    private String purchasePurpose;

    private String birthday;

    /**
     * 邮箱是否验证 0 默认未验证，1 验证
     */
    @Column(name = "email_verified")
    private String emailVerified;

    /**
     * 头像
     */
    private String portrait;

    /**
     * Community 点赞了3篇 文章
     */
    @Column(name = "c_favorite")
    private Integer cFavorite;

    /**
     * 访问了 Community
     */
    @Column(name = "c_visit")
    private Integer cVisit;

    /**
     * Community 关注了一个用户
     */
    @Column(name = "c_follow")
    private Integer cFollow;

    /**
     * Community 发了一篇文章
     */
    @Column(name = "c_post")
    private Integer cPost;

    /**
     * Community 发了文章，加了精华
     */
    @Column(name = "c_post_featured")
    private Integer cPostFeatured;

    private String cart;

    private String wishlist;

    @Column(name = "custom_field")
    private String customField;

    private String token;
}